<template>
	<view class="mine-wrap page-bg content-20">
		<view class="line-info-wrap">
			<!-- <view class="line-info" @click="link('/pages/mine/edit')">
				<view class="line-info__title">个人资料</view>
				<view class="line-info__con link"></view>
			</view> -->
			<view class="line-info"  @click="link('/pages/mine/settingPhone')">
				<view class="line-info__title">更换手机</view>
				<view class="line-info__con link">{{userInfo.userPhone | phonePartOf}}</view>
			</view>
			<view class="line-info">
				<view class="line-info__title">版本信息</view>
				<view class="line-info__con link">{{common.appVersion}}</view>
			</view>
		</view>
		
		
		<!-- <view class="btn-set">退出账号</view> -->
	</view>
</template>

<script>
	import common from '../../utils/common.js'
	export default {
		data() {
			return {
				userInfo: {},
				common
			}
		},
		onLoad() {
			this.userInfo = common.getUserInfo()
		},
		methods: {
			link(url) {
				this.$link(url)
			},
			logout() {
				uni.removeStorageSync('user')		
				uni.removeStorageSync('code')		
				uni.removeStorageSync('shopDetailId')		
				uni.removeStorageSync('shopTeamDetailId')		
				this.$showToast('缓存清除成功~')
				setTimeout(() => {
					this.$link('/pages/index/index')
				}, 2000)
			}
		}
	}
</script>

<style scoped lang="less">
	@import url('../../app.less');

	
	
</style>
